// 评论路由
const comment = require('express').Router();

// 提交评论
comment.post('/:uid', require('./action/comment/AddComment'))

// 获取0层评论列表
comment.get('/', require('./action/comment/getComment'))

// 根据id获取0层评论
comment.get('/:id', require('./action/comment/getCommentById'))

// 根据id删除评论
comment.delete('/:id', require('./action/comment/deleteById'))

module.exports = comment